package com.androidhive.androidlistview;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.widget.Spinner;

public class StateWiseSearch extends Activity {
	public final static String cropname = null;
	Spinner state;
	String fFSTATE=new String();

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_state_wise_search);
		state = (Spinner) findViewById(R.id.spinner1);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_state_wise_search, menu);
		return true;
	}


public void sendMessage(View view){
	fFSTATE=String.valueOf(state.getSelectedItem());
	 Intent intent = new Intent(this, ListViewCheckboxesActivity.class);
	  intent.putExtra(cropname, fFSTATE+"#");
	    
	  //  System.out.println("HareKrishna");
	    Log.d("MyApp","I am here");
	    startActivity(intent);
	
}
//fFSTATE=String.valueOf(state.getSelectedItem());
}